Repository navigation
overlays: Add ISM330DHCX support to i2c-sensor - #7808
Open
mohammedryn wants to merge 1 commit into
Open
mohammedryn wants to merge 1 commit into
mohammedryn wants to merge 1 commit into
Conversation
Add an ism330dhcx parameter to the i2c-sensor overlay so boards using the STMicroelectronics ISM330DHCX accelerometer and gyroscope can use the existing st_lsm6dsx I2C driver. Default to I2C address 0x6b and support the alternative address 0x6a through the existing addr parameter. Signed-off-by: Mohammed Rayan <mohammedrah1289@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an ism330dhcx parameter to the i2c-sensor overlay so boards using the STMicroelectronics ISM330DHCX accelerometer and gyroscope can use the existing st_lsm6dsx I2C driver.
Default to I2C address 0x6b and support the alternative address 0x6a through the existing addr parameter.
Testing
breakout, Ubuntu 24.04, and kernel
6.8.0-1056-raspi. The overlayloaded at boot, the driver bound automatically at
0x6b, and theaccelerometer and gyroscope both returned X, Y, and Z readings.
addr=0x6ain the merged Device Tree. The existingBME280 address override produced identical output before and
after the change.